package com.ruoyi.zhmk.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 人员请假对象 zhmk_ask
 * 
 * @author sxl
 * @date 2021-06-15
 */
public class ZhmkAsk extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 请假ID */
    private Long askId;

    /** 人员ID */
    @Excel(name = "人员ID")
    private Long userId;

    /** 人员状态（00在职 01离队 02归队） */
    @Excel(name = "人员状态", readConverterExp = "0=0在职,0=1离队,0=2归队")
    private String userType;

    /** 请假状态（0未审核 1移交中 2通过 3不通过） */
    @Excel(name = "请假状态", readConverterExp = "0=未审核,1=移交中,2=通过,3=不通过")
    private String status;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    /** 请假开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "请假开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date askStartDate;

    /** 请假结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "请假结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date askEndDate;

    public void setAskId(Long askId) 
    {
        this.askId = askId;
    }

    public Long getAskId() 
    {
        return askId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setUserType(String userType) 
    {
        this.userType = userType;
    }

    public String getUserType() 
    {
        return userType;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }
    public void setAskStartDate(Date askStartDate) 
    {
        this.askStartDate = askStartDate;
    }

    public Date getAskStartDate() 
    {
        return askStartDate;
    }
    public void setAskEndDate(Date askEndDate) 
    {
        this.askEndDate = askEndDate;
    }

    public Date getAskEndDate() 
    {
        return askEndDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("askId", getAskId())
            .append("userId", getUserId())
            .append("userType", getUserType())
            .append("status", getStatus())
            .append("delFlag", getDelFlag())
            .append("askStartDate", getAskStartDate())
            .append("askEndDate", getAskEndDate())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
